/**
 * Created by front on 2017/9/27.
 */
import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
  name: 'keys'
})

export class KeysPipe implements PipeTransform {
  transform(value: any, ...args: any[]): any {
    let keys = [];
    for (let key in value) {
      keys.push({key : key,value : value[key]})
    }
    return keys;
  }
}
